package com.xc.quickstart.rpc.impl;

import com.xc.quickstart.rpc.SampleRpcService;
import com.xc.quickstart.rpc.query.SampleRpcQuery;
import com.xc.quickstart.rpc.vo.SampleRpcVO;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService(version = "${provider.service.version}")
public class SampleRpcServiceImpl implements SampleRpcService {

    @Override
    public SampleRpcVO hello(SampleRpcQuery sampleRpcQuery) {
        SampleRpcVO sampleRpcVO = new SampleRpcVO();
        sampleRpcVO.setName(sampleRpcQuery.getName() + "rrrr");
        sampleRpcVO.setAge(88888);
        return sampleRpcVO;
    }
}
